package com.zhuiYun.project.api.order.service.serviceImpl;

import com.zhuiYun.project.api.order.mapper.diyorderMapper;
import com.zhuiYun.project.api.order.mapper.orderMapper;
import com.zhuiYun.project.api.order.model.diyorderModel;
import com.zhuiYun.project.api.order.model.orderModel;
import com.zhuiYun.project.api.order.service.diyorderService;
import com.zhuiYun.project.api.order.service.orderService;
import com.zhuiYun.project.common.response.CommonResult;
import com.zhuiYun.project.util.pageUtil.MybatisPageHelper;
import com.zhuiYun.project.util.pageUtil.PageRequest;
import com.zhuiYun.project.util.pageUtil.PageResult;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 小江
 * @Description //TODO 订单
 * @Date 10:40 2023/4/4
 **/
@Service
public class diyorderServiceImpl implements diyorderService {
    @Autowired
    diyorderMapper diyorderMapper;

    @Override
    public CommonResult diyorderList(diyorderModel diyorderMode) {
        List<diyorderModel> diyorderModels = diyorderMapper.diyorderList(diyorderMode);
        return CommonResult.ok(diyorderModels);
    }
}
